package com.emergency.engine;


import com.emergency.common.util.IdWorker;
import com.emergency.common.util.JwtUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


/**
 * Created by lijie on 2019/9/23.
 * 推演引擎系统
 */
@SpringBootApplication
@EnableSwagger2
@EntityScan(basePackages={"com.emergency.***.domain"})
@ComponentScan(basePackages = {"com.emergency.**"})
@EnableScheduling
public class EngineApplication {
    private final static Logger logger = LoggerFactory.getLogger(EngineApplication.class);

    public static void main(String[] args) {

        SpringApplication.run(EngineApplication.class);

        logger.info("项目成功启动！");

    }
    @Bean
    public IdWorker idWorker(){
        return new IdWorker ( 1,1 );
    }
}
